import com.niit.online.music.model.domain.Banner;
import org.hamcrest.Matchers;
import org.junit.Assert;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class MapperTest {

    @Autowired
    private BannerMapper bannerMapper;

    @Test
    public void bannerMapperTest(){
        List<Banner> banners = bannerMapper.selectList(null);
        Assert.assertThat(banners, Matchers.notNullValue());//assertThat断言后面介绍
    }
}
